import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from "@/components/HelloWorld"
import Todolist from "@/views/Todolist"

//组件模块


Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', redirect:"/todolist"},
    { path: '/todolist', name: 'Todo', component: Todolist },
    { path: '/helloworld', name: 'Home', component: HelloWorld },
    // { path: '/header',  name: 'Header', component: Header},
    // { path: '/admin',  name: 'Admin', component: Admin}
  ]
})